#include "../apue.h"
#include <stdio.h>
#include <unistd.h>

int main(void)
{
    char * username;
    uid_t uid;

    if ((username = getlogin()) == NULL)
        err_sys("getlogin error");

    printf("username:%s\n", username);

    exit(0);
}
